(add-to-list 'load-path "~/.emacs.d/libs/auto-complete-1.2")
(require 'auto-complete-config)
(add-to-list 'ac-dictionary-directories "~/.emacs.d/libs/auto-complete-1.2/dict")
(ac-config-default)

;; (add-hook 'sgml-mode-hook 'ac-common-setup)
;; (add-hook 'html-mode-hook 'ac-common-setup)

(setq-default ac-delay 0.0)
(setq-default ac-auto-show-menu 0.0)

(require 'auto-complete-etags)
(defun ac-etags-setup ()
  (add-to-list 'ac-sources 'ac-source-etags))
(add-hook 'c-mode-common-hook 'ac-etags-setup)

;;;; (setq-default ac-sources (append '(ac-source-etags) ac-sources))
